:root{
    --width-main: 1000px;
    --color-main: rgb(11, 138, 85);
    --color-minor: rgb(204, 224, 204);
    --font-color-main:  rgb(28, 28, 28);
    --font-color-minor: rgb(116, 116, 116);
    --background-color: rgb(248, 248, 248);
}
@media screen and (max-width: 1000px){
    :root{
        --width-main: 94vw
    }
}
*{margin: 0; padding: 0;}
html{font-size: 62.5%;}
body{color: var(--font-color-main); background-color: var(--background-color);}
a:link{text-decoration: none; color: var(--font-color-main);}
a:visited{text-decoration: none; color: var(--font-color-minor);}
a:hover{text-decoration: underline; color: var(--color-main);}
a:active{text-decoration: underline; color: black;}
#header{
    margin: 0 auto; 
    padding: 10px 0;
    width: var(--width-main);
    font-size: 2.6rem;
    border-bottom: 3px solid var(--color-main);
}
@media screen and (max-width: 1000px){
    #header{
        border-bottom: none;
    }
}
.header-logo{
    color: var(--color-main);
    line-height: 50px;
}
.header-search{
    float: right;
    padding-top: 2px;

}
#header-submit{
    padding: 5px;
    font-size: 1.6rem;
    background-color: white;
    border: 2px solid var(--color-main);
}
#header-submit:active{
    color: white;
    background-color: var(--color-main);
}
#header-text{
    padding: 5px;
    font-size: 1.6rem;
    border: 2px solid var(--color-main);
}
@media screen and (max-width: 1000px){
    #header-submit{
        border-width: 1px;
    }
    #header-text{
        border-width: 1px;
    }
}
#main{
    position: relative;
    margin: 0 auto;
    width: var(--width-main);
    min-height: 85vh;
}
.main-result{
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: auto;
    background-color: rgb(240, 240, 240);
    box-shadow:  0 20px 10px -20px rgba(0,0,0,0.3);
    counter-reset: result;
}
.result-bar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 50px;
    color: var(--font-color-minor);
    font-size: 1.7rem;
}
.result-fold:hover{
    color: var(--color-main);
    cursor: pointer;
}
.result-content{
    padding: 0 0 20px 30px;
    font-size: 1.6rem;
}
.result-list{
    list-style-type: none;
}
.result-list>li{
    margin: 0 20px 10px 0;
    float: left;
}
.result-list>li::before{
    counter-increment: result;
    content: counter(result);
    margin: 0 5px 0 0;
    padding: 0 5px;
    color: white;
    font-size: 1.2rem;
    background-color: var(--color-minor);
}
.main-articles{
    padding: 10px 0 0 0;
    font-size: 1.8rem;
}
.articles-list{
    list-style: none;
    counter-reset: article;
}
.articles-list>li{
    box-sizing: border-box;
    padding: 5px 0;
    width: 100%;
}
.articles-list>li::before{
    counter-increment: article;
    content: counter(article);
    margin: 0 10px 0 0;
    padding: 0 5px;
    color: white;
    background-color: #8eb9f5;
}
.articles-list>li:nth-child(1)::after{
    content: '最新';
    margin: 0 0 0 10px;
    padding: 0 5px;
    color: white;
    font-size: 1.3rem;
    background-color: #f54545;
}
.articles-list>li:nth-child(1)::before{
    background-color: #f54545;
}
.articles-list>li:nth-child(2)::before{
    background-color: #ff8547;
}
.articles-list>li:nth-child(3)::before{
    background-color: #ffac38;
}
.articles-list>li>span{
    margin: 0 0 0 10px;
    color: rgb(180, 180, 180);
    font-size: 1.4rem;
}
.main-control{
    margin-top: 10px;
    font-size: 1.8rem;
}
.control-wrap{
    display: flex;
    justify-content: flex-end;
    width: 100%;
    height: 40px;
}
@media screen and (max-width: 1000px){
    .control-wrap{
        justify-content: center;
    }
}
.control-left, .control-right{
    width: 40px;
    height: 40px;
    line-height: 40px;
    color: var(--color-main);
    text-align: center;
    background-color: var(--color-minor);
    user-select: none;
}
.control-left:hover, .control-right:hover{
    cursor: pointer;
    color: white;
    background-color: var(--color-main);
}
.control-info{
    width: 80px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}
#footer{
    margin: 0 auto;
    padding: 0 0 20px 0;
    width: var(--width-main);
    font-size: 1.6rem;
    text-align: center;
}


.clearfix{
    zoom: 1;
}
.clearfix:after{
    content: "";
    display: block;
    height: 0;
    clear: both;
}